package com.hntest.entity;

import java.io.Serializable;

public class RealAuth extends BaseAuditDomain implements Serializable {
    private static final long serialVersionUID = 7293644444900917207L;
    private static final int SEX_MALE = 0;//性别男
    private static final int SEX_FEMALE = 1;//性别女

    private Integer realauthId;
    private String realName;//真实姓名
    private Integer sex=0;
    private String bornDate;//生日
    private String idNumber="";//身份证号码
    private String address="";//地址
    private String image1;//身份证正面照
    private String image2;//身份证反面照

    public String getSexDisplay(){
        return sex==0?"男":"女";
    }

    public static int getSexMale() {
        return SEX_MALE;
    }

    public static int getSexFemale() {
        return SEX_FEMALE;
    }

    public Integer getRealauthId() {
        return realauthId;
    }

    public void setRealauthId(Integer realauthId) {
        this.realauthId = realauthId;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getBornDate() {
        return bornDate;
    }

    public void setBornDate(String bornDate) {
        this.bornDate = bornDate;
    }

    public String getIdNumber() {
        return idNumber;
    }

    public void setIdNumber(String idNumber) {
        this.idNumber = idNumber;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getImage1() {
        return image1;
    }

    public void setImage1(String image1) {
        this.image1 = image1;
    }

    public String getImage2() {
        return image2;
    }

    public void setImage2(String image2) {
        this.image2 = image2;
    }

    @Override
    public String toString() {
        return  super.toString()+
                "\nRealAuth{" +
                "realauthId=" + realauthId +
                ", 真实姓名='" + realName + '\'' +
                ", 性别=" + sex +
                ", 出生日期='" + bornDate + '\'' +
                ", 身份证='" + idNumber + '\'' +
                ", 地址='" + address + '\'' +
                ", image1='" + image1 + '\'' +
                ", image2='" + image2 + '\'' +
                '}';
    }
}
